-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[auth] Add Android Quick Settings tile to launch the app #7831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[auth] Add Android Quick Settings tile to launch the app #7831
Conversation
Users can now add a Quick Settings tile to quickly launch the app. This provides a convenient shortcut to access 2FA codes without searching for the app on the home screen or app drawer. Changes: - Android: Added QuickTileService to the manifest. - Android: Implemented QuickTileService, the tile launches the main activity. - Android: Included a monochrome icon for the tile.
|
I wonder would it be possible to copy a specific code from quick tile? |
Technically it should be possible, for example Bitwarden has a tile to autofill credentials. However this would require accessibility permissions to detect the active app or website when the tile is activated, and each entry in the authenticator would need to include its associated URLs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible for Ente Auth tile to look like Flashlight tile (basically without the right arrow at the end).
Having a arrow there makes me think that I can expand the tile like wifi and bluetooth one. Looks good otherwise.
- Marked tile as toggleable to remove the arrow icon. - Added subtitle to hide the "Off" label under the tile. Note: The tile is not functionally toggleable — TOGGLEABLE_TILE is used only for appearance consistency.
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
mobile/apps/auth/android/app/src/main/kotlin/io/ente/authenticator/QuickTileService.kt
Show resolved
Hide resolved
Guarded subtitle assignment in QuickTileService to prevent NoSuchMethodError on Android versions below API 29, where Tile.subtitle is not available. - Added version check before setting tile.subtitle - Verified on emulator with API 27. No crashes, tile works correctly
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. Keep it up! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |


Users can now add a Quick Settings tile to quickly launch the app. This provides a convenient shortcut to access 2FA codes without searching for the app on the home screen or app drawer.
Changes:
Description
This PR introduces a Quick Settings tile on Android to launch the Ente Auth app.
The following changes have been made:
Related discussion #1026
Tests
Physical Device and emulator on Android 16 (SDK 36)
Result: The tile is correctly displayed and launches the app successfully.
Emulator: Android 5.0 (SDK 21)
Result: This test was performed to ensure backward compatibility on Android versions below API 24 (which do not support Quick Settings tiles). The app runs without any crashes or issues. The new code is correctly bypassed on older versions.
demo.mp4